home *** CD-ROM | disk | FTP | other *** search
- title "gap.c"
- if "line height greater than 0 ?" then "line resolves" :
- "transform window pointers"
- "clear gap table and gap index"
- "waslow = TRUE"
- loop "for x from left to right"
- "compute bits in current column"
- if "bit count exceeds threshold?" then "yes" :
- if "waslow?" then "rising edge" :
- "store increasing x component in current gap item"
- "waslow = FALSE"
- endif
- else "no" :
- if "not waslow?" then "falling edge" :
- "store decreasing x component in current gap item"
- "waslow = TRUE , increment gap index"
- endif
- endif
- endloop ""
- "return TRUE"
- else "line doesn't resolve" :
- "return FALSE"
- endif
- if "line height greater than 0 ?" then "line resolves" :
- "transform window pointers"
- "clear gap table and gap index"
- "waslow = TRUE"
- loop "for x from left to right"
- "compute bits in current column"
- if "bit count exceeds threshold?" then "yes" :
- if "waslow?" then "rising edge" :
- "store increasing x component in current gap item"
- "waslow = FALSE"
- endif
- else "no" :
- if "not waslow?" then "falling edge" :
- "store decreasing x component in current gap item"
- "waslow = TRUE , increment gap index"
- endif
- endif
- endloop ""
- "return TRUE"
- else "line doesn't resolve" :
- "return FALSE"
- endif
-
-